var React = require('react');
var ReactDOM = require('react-dom');
import ComponentHeader from '../components/header';
import ComponentBody from '../components/body';
import ComponentFooter from '../components/footer';

class Index extends React.Component {
	render() {
		return (
			<div>
				<ComponentHeader />
				{/*父模块没有传值的话 会使用body.js里默认的用户名
					传值的话 会覆盖默认用户名
				*/}
				<ComponentBody userName={"侯亮平"} age={30} userID={454} id={101} />
				<ComponentFooter />
			</div>
		)
	}
}

ReactDOM.render(
	<Index />,
	document.getElementById('example')
)
